<!--
 * @Author: qinglong
 * @Date: 2021-04-30 14:06:26
 * @LastEditors: qinglong
 * @LastEditTime: 2021-05-19 13:47:05
 * @FilePath: \systemCenter\src\views\ftpManage\positionManage\amend\positionAmendForm.vue
 * @Description: 
-->

<template>
  <div>
    <!--标签页,1-->
    <el-tabs
      ref="tabs"
      type="card"
      v-model="activeTabName"
      tab-position="top"
      :before-leave="beforeTabAct"
    >
      <!--tabPane,1-->
      <el-tab-pane label="基础信息" name="baseInfo">
        <div style="height:300px;overflow:auto">
          <!--表单,1-->
          <el-form
            ref="baseInfoFormRef"
            :model="baseInfoForm"
            tokenKey="baseInfoForm"
            :disabled="formDistable"
            label-position="right"
            label-width="140px"
            :rules="!formDistable ? baseInfoRules : {}"
          >
            <!--布局,3-->
            <el-row>
              <!--col,3-->
              <el-col :span="12">
                <!--表单行,1-->
                <el-form-item label="账号:" prop="acctNo">
                  <!--输入框,2-->
                  <el-input
                    event-render="loadText"
                    v-model="baseInfoForm.acctNo"
                    style="width:180px"
                    maxlength="40"
                    placeholder="请输入..."
                    type="text"
                    :disabled="isEdit"
                  ></el-input>
                  <!--输入框,2-->
                </el-form-item>
                <!--表单行,1-->
              </el-col>
              <!--col,3-->
              <!--col,4-->
              <el-col :span="12">
                <!--表单行,2-->
                <el-form-item label="数据日期:" prop="dataDt">
                  <!--日期,1-->
                  <el-date-picker
                    type="date"
                    v-model="baseInfoForm.dataDt"
                    value-format="yyyy-MM-dd"
                    style="width:180px"
                    placeholder="选择日期"
                  ></el-date-picker>
                  <!--日期,1-->
                </el-form-item>
                <!--表单行,2-->
              </el-col>
              <!--col,4-->
              <!--col,5-->
              <el-col :span="12">
                <!--表单行,3-->
                <el-form-item label="机构:" prop="orgCd">
                  <ftp-tree
                    style="width:180px;height:26px;"
                    v-model="baseInfoForm.orgCd"
                    dictCode="OrganUnit"
                    :disabled="isftpTree"
                    :mulSelect="false"
                  ></ftp-tree>
                </el-form-item>
                <!--表单行,3-->
              </el-col>
              <!--col,5-->
              <!--col,6-->
              <el-col :span="12">
                <!--表单行,4-->
                <el-form-item label="行业:" prop="industryCd">
                  <ftp-tree
                    style="width:180px;height:26px;"
                    v-model="baseInfoForm.industryCd"
                    dictCode="Industry"
                    :disabled="isftpTree"
                    :mulSelect="false"
                  ></ftp-tree>
                </el-form-item>
                <!--表单行,4-->
              </el-col>
              <!--col,6-->

              <!--col,8-->
              <el-col :span="12">
                <!--表单行,6-->
                <el-form-item label="产品:" prop="prdCd">
                  <ftp-tree
                    style="width:180px;height:26px;"
                    v-model="baseInfoForm.prdCd"
                    dictCode="productCd"
                    :disabled="isftpTree"
                    :mulSelect="false"
                  ></ftp-tree>
                </el-form-item>
                <!--表单行,6-->
              </el-col>
              <!--col,8-->
              <!--col,9-->
              <el-col :span="12">
                <!--表单行,7-->
                <el-form-item label="科目:" prop="sbjtCd">
                  <ftp-tree
                    style="width:180px;height:26px;"
                    v-model="baseInfoForm.sbjtCd"
                    dictCode="GeneralLedger"
                    :disabled="isftpTree"
                    :mulSelect="false"
                  ></ftp-tree>
                </el-form-item>
                <!--表单行,7-->
              </el-col>
              <!--col,9-->

              <!--col,10-->
              <el-col :span="12">
                <!--表单行,8-->
                <el-form-item label="币种:" prop="ccyCd">
                  <el-select v-model="baseInfoForm.ccyCd" style="width:180px" placeholder="请选择">
                    <el-option
                      v-for="item in currencyOption"
                      :key="item.currencyId"
                      :label="item.currencyName"
                      :value="item.currencyCode"
                    ></el-option>
                  </el-select>
                </el-form-item>
                <!--表单行,8-->
              </el-col>
              <!--col,10-->

              <!--col,7-->
              <el-col :span="12">
                <!--表单行,5-->
                <el-form-item label="客户编号:" prop="custNo">
                  <!--输入框,6-->
                  <el-input
                    event-render="loadText"
                    v-model="baseInfoForm.custNo"
                    style="width:180px"
                    maxlength="40"
                    placeholder="请输入..."
                    type="text"
                    :disabled="false"
                  ></el-input>
                  <!--输入框,6-->
                </el-form-item>
                <!--表单行,5-->
              </el-col>
              <!--col,7-->
              <!--col,11-->
              <el-col :span="12">
                <!--表单行,9-->
                <el-form-item label="业务类型:" prop="sbjtTp">
                  <!--字典组件-->
                  <el-select v-model="baseInfoForm.sbjtTp" style="width:180px" placeholder="请选择">
                    <el-option
                      v-for="item in cpm_subject_type"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </el-select>
                  <!-- <ftp-dict
                    v-model="baseInfoForm.sbjtTp"
                    :dictCode="'cpm_subject_type'"
                    style="width:180px"
                    noNull="true"
                  ></ftp-dict>-->
                  <!--字典组件-->
                </el-form-item>
                <!--表单行,9-->
              </el-col>
              <!--col,11-->
              <!--col,12-->
              <el-col :span="12">
                <!--表单行,10-->
                <el-form-item label="计息基础代码:" prop="acruIntstBas">
                  <!--字典组件-->
                  <el-select
                    v-model="baseInfoForm.acruIntstBas"
                    placeholder="请选择"
                    style="width:180px"
                  >
                    <el-option
                      v-for="item in ftp_cp_accru_basis_cd"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </el-select>
                  <!-- <ftp-dict
                    v-model="baseInfoForm.acruIntstBas"
                    :dictCode="'ftp_cp_accru_basis_cd'"
                    style="width:180px"
                    noNull="true"
                  ></ftp-dict>-->
                  <!--字典组件-->
                </el-form-item>
                <!--表单行,10-->
              </el-col>
              <!--col,12-->
              <!--col,13-->
              <el-col :span="12">
                <!--表单行,11-->
                <el-form-item label="原始余额:" prop="origAmt">
                  <!--输入框,12-->
                  <el-input
                    event-render="loadText"
                    v-model="baseInfoForm.origAmt"
                    style="width:180px"
                    maxlength="40"
                    placeholder="请输入..."
                    type="text"
                    :disabled="false"
                  ></el-input>
                  <!--输入框,12-->
                </el-form-item>
                <!--表单行,11-->
              </el-col>
              <!--col,13-->
              <!--col,14-->
              <el-col :span="12">
                <!--表单行,12-->
                <el-form-item label="当前余额:" prop="curBal">
                  <!--输入框,13-->
                  <el-input
                    event-render="loadText"
                    v-model="baseInfoForm.curBal"
                    style="width:180px"
                    maxlength="40"
                    placeholder="请输入..."
                    type="text"
                    :disabled="false"
                  ></el-input>
                  <!--输入框,13-->
                </el-form-item>
                <!--表单行,12-->
              </el-col>
              <!--col,14-->
              <!--col,15-->
              <el-col :span="12">
                <!--表单行,13-->
                <el-form-item label="有无到期日标志:" prop="matuFlg">
                  <!--字典组件-->
                  <el-select v-model="baseInfoForm.matuFlg" placeholder="请选择" style="width:180px">
                    <el-option
                      v-for="item in ftp_cp_mat_flag_cd"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </el-select>
                  <!-- <ftp-dict
                    v-model="baseInfoForm.matuFlg"
                    :dictCode="'ftp_cp_mat_flag_cd'"
                    style="width:180px"
                    noNull="true"
                  ></ftp-dict>-->
                  <!--字典组件-->
                </el-form-item>
                <!--表单行,13-->
              </el-col>
              <!--col,15-->
              <!--col,16-->
              <el-col :span="12">
                <!--表单行,14-->
                <el-form-item label="利率敏感标志:" prop="rateSensitiveFlg">
                  <!--字典组件-->
                  <el-select
                    v-model="baseInfoForm.rateSensitiveFlg"
                    placeholder="请选择"
                    style="width:180px"
                  >
                    <el-option
                      v-for="item in ftp_cp_ratesensitive_flag"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </el-select>
                  <!-- <ftp-dict
                    v-model="baseInfoForm.rateSensitiveFlg"
                    :dictCode="'ftp_cp_ratesensitive_flag'"
                    style="width:180px"
                    noNull="true"
                  ></ftp-dict>-->
                  <!--字典组件-->
                </el-form-item>
                <!--表单行,14-->
              </el-col>
              <!--col,16-->
              <!--col,17-->
              <el-col :span="12">
                <!--表单行,15-->
                <el-form-item label="条线:" prop="bizLineCd">
                  <!--字典组件-->
                  <el-select v-model="baseInfoForm.bizLineCd" placeholder="请选择" style="width:180px">
                    <el-option
                      v-for="item in ftp_cp_stripline"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </el-select>
                  <!-- <ftp-dict
                    v-model="baseInfoForm.bizLineCd"
                    :dictCode="'ftp_cp_stripline'"
                    style="width:180px"
                    noNull="true"
                  ></ftp-dict>-->
                  <!--字典组件-->
                </el-form-item>
                <!--表单行,15-->
              </el-col>
              <!--col,17-->
              <!--col,18-->
              <el-col :span="12">
                <!--表单行,16-->
                <el-form-item label="区域:" prop="area">
                  <!--字典组件-->
                  <el-select v-model="baseInfoForm.area" placeholder="请选择" style="width:180px">
                    <el-option
                      v-for="item in ftp_cp_area"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </el-select>
                  <!-- <ftp-dict
                    v-model="baseInfoForm.area"
                    :dictCode="'ftp_cp_area'"
                    style="width:180px"
                    noNull="true"
                  ></ftp-dict>-->
                  <!--字典组件-->
                </el-form-item>
                <!--表单行,16-->
              </el-col>
              <!--col,18-->
            </el-row>
            <!--布局,3-->
          </el-form>
          <!--表单,1-->
        </div>
      </el-tab-pane>
      <!--tabPane,1-->
      <!--tabPane,2-->
      <el-tab-pane label="利率信息" name="rateInfo">
        <!--表单,2-->
        <el-form
          ref="rateInfoFormRef"
          :model="rateInfoForm"
          :disabled="formDistable"
          tokenKey="rateInfoForm"
          label-position="right"
          label-width="140px"
          :rules="!formDistable ? rateInfoRules : {}"
        >
          <!--布局,4-->
          <el-row ref="rateInfoRowRef">
            <!--col,19-->
            <el-col :span="12">
              <!--表单行,17-->
              <el-form-item label="对客利率:" prop="execRate">
                <!--输入框,18-->
                <el-input
                  event-render="loadText"
                  v-model="rateInfoForm.execRate"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,18-->
              </el-form-item>
              <!--表单行,17-->
            </el-col>
            <!--col,19-->
            <!--col,20-->
            <el-col :span="12">
              <!--表单行,18-->
              <el-form-item label="利率代码:" prop="execRateCd">
                <!--输入框,19-->
                <el-input
                  event-render="loadText"
                  v-model="rateInfoForm.execRateCd"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,19-->
              </el-form-item>
              <!--表单行,18-->
            </el-col>
            <!--col,20-->
            <!--col,21-->
            <el-col :span="12">
              <!--表单行,19-->
              <el-form-item label="浮动类型代码:" prop="fltTpCd">
                <!--字典组件-->
                <el-select v-model="baseInfoForm.fltTpCd" placeholder="请选择" style="width:180px">
                  <el-option
                    v-for="item in ftp_cp_int_float_type_cd"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="rateInfoForm.fltTpCd"
                  :dictCode="'ftp_cp_int_float_type_cd'"
                  style="width:180px"
                  noNull="true"
                ></ftp-dict>-->
                <!--字典组件-->
              </el-form-item>
              <!--表单行,19-->
            </el-col>
            <!--col,21-->
            <!--col,22-->
            <el-col :span="12">
              <!--表单行,20-->
              <el-form-item label="浮动比例:" prop="fltRatio">
                <!--输入框,21-->
                <el-input
                  event-render="loadText"
                  v-model="rateInfoForm.fltRatio"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,21-->
              </el-form-item>
              <!--表单行,20-->
            </el-col>
            <!--col,22-->
            <!--col,23-->
            <el-col :span="12">
              <!--表单行,21-->
              <el-form-item label="浮动利差:" prop="fltMargin">
                <!--输入框,22-->
                <el-input
                  event-render="loadText"
                  v-model="rateInfoForm.fltMargin"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,22-->
              </el-form-item>
              <!--表单行,21-->
            </el-col>
            <!--col,23-->
            <!--col,24-->
            <el-col :span="12">
              <!--表单行,22-->
              <el-form-item label="票面利率:" prop="billRate">
                <!--输入框,23-->
                <el-input
                  event-render="loadText"
                  v-model="rateInfoForm.billRate"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,23-->
              </el-form-item>
              <!--表单行,22-->
            </el-col>
            <!--col,24-->
          </el-row>
          <!--布局,4-->
        </el-form>
        <!--表单,2-->
      </el-tab-pane>
      <!--tabPane,2-->
      <!--tabPane,3-->
      <el-tab-pane label="期限信息" name="termInfo">
        <!--表单,3-->
        <el-form
          ref="termInfoFormRef"
          :model="termInfoForm"
          :disabled="formDistable"
          tokenKey="termInfoForm"
          label-position="right"
          label-width="140px"
          :rules="!formDistable ? termInfoRules : {}"
        >
          <!--布局,5-->
          <el-row ref="termInfoRowRef">
            <!--col,25-->
            <el-col :span="12">
              <!--表单行,23-->
              <el-form-item label="起息日:" prop="startDt">
                <!--日期,2-->
                <el-date-picker
                  type="date"
                  v-model="termInfoForm.startDt"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                ></el-date-picker>
                <!--日期,2-->
              </el-form-item>
              <!--表单行,23-->
            </el-col>
            <!--col,25-->
            <!--col,30-->
            <el-col :span="12">
              <!--表单行,28-->
              <el-form-item label="原始期限:" prop="term">
                <!--输入框,29-->
                <el-input
                  event-render="loadText"
                  v-model="termInfoForm.term"
                  style="width:80px;display:inline-block"
                  maxlength="9"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,29-->
                <!--字典组件-->
                <el-select v-model="termInfoForm.termMult" placeholder="请选择" style="width:100px">
                  <el-option
                    v-for="item in sys_unit"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!--字典组件-->
              </el-form-item>
              <!--表单行,28-->
            </el-col>
            <!--col,30-->
            <!--col,31-->
            <el-col :span="12">
              <!--表单行,29-->
              <el-form-item label="到期日:" prop="matuDt">
                <!--日期,3-->
                <el-date-picker
                  type="date"
                  v-model="termInfoForm.matuDt"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                ></el-date-picker>
                <!--日期,3-->
                <p style="color:red">默认为起息日加原始期限</p>
              </el-form-item>
              <!--表单行,29-->
            </el-col>
            <!--col,31-->
            <!--col,32-->
            <el-col :span="12">
              <!--表单行,30-->
              <el-form-item label="逾期期限:" prop="odueTerm">
                <!--输入框,80-->
                <el-input
                  event-render="loadText"
                  v-model="termInfoForm.odueTerm"
                  style="width:80px;display:inline-block"
                  maxlength="9"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,80-->
                <!--字典组件-->
                <el-select
                  v-model="termInfoForm.odueTermMult"
                  placeholder="请选择"
                  style="width:100px"
                >
                  <el-option
                    v-for="item in sys_unit"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="termInfoForm.odueTermMult"
                  :dictCode="'sys_unit'"
                  style="width:100px;display:inline-block"
                  noNull="true"
                ></ftp-dict>-->
                <!--字典组件-->
              </el-form-item>
              <!--表单行,30-->
            </el-col>
            <!--col,32-->
          </el-row>
          <!--布局,5-->
        </el-form>
        <!--表单,3-->
      </el-tab-pane>
      <!--tabPane,3-->
      <!--tabPane,4-->
      <el-tab-pane label="支付信息" name="payInfo">
        <!--表单,4-->
        <el-form
          ref="payInfoFormRef"
          :disabled="formDistable"
          :model="payInfoForm"
          tokenKey="payInfoForm"
          label-position="right"
          label-width="140px"
          :rules="!formDistable ? payInfoRules : {}"
        >
          <!--布局,6-->
          <el-row ref="payInfoRowRef">
            <!--col,26-->
            <el-col :span="12">
              <!--表单行,24-->
              <el-form-item label="支付金额:" prop="pmtBal">
                <!--输入框,25-->
                <el-input
                  event-render="loadText"
                  v-model="payInfoForm.pmtBal"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,25-->
              </el-form-item>
              <!--表单行,24-->
            </el-col>
            <!--col,26-->
            <!--col,33-->
            <el-col :span="12">
              <!--表单行,31-->
              <el-form-item label="结息频率:" prop="intstPmtFreq">
                <!--输入框,81-->
                <el-input
                  event-render="loadText"
                  v-model="payInfoForm.intstPmtFreq"
                  style="width:80px;display:inline-block"
                  maxlength="9"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,81-->
                <!--字典组件-->
                <el-select
                  v-model="termInfoForm.intstPmtFreqMult"
                  placeholder="请选择"
                  style="width:100px;display:inline-block"
                >
                  <el-option
                    v-for="item in sys_unit"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="payInfoForm.intstPmtFreqMult"
                  :dictCode="'sys_unit'"
                  style="width:100px;display:inline-block"
                  noNull="true"
                ></ftp-dict>-->
                <!--字典组件-->
              </el-form-item>
              <!--表单行,31-->
            </el-col>
            <!--col,33-->
            <!--col,34-->
            <el-col :span="12">
              <!--表单行,32-->
              <el-form-item label="支付类型代码:" prop="pmtTp">
                <!--字典组件-->
                <el-select
                  v-model="payInfoForm.pmtTp"
                  :disabled="baseInfoForm.matuFlg != '1'"
                  placeholder="请选择"
                  style="width:180px"
                >
                  <el-option
                    v-for="item in ftp_cp_pay_type_cd"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="payInfoForm.pmtTp"
                  :disabled="baseInfoForm.matuFlg != '1'"
                  :dictCode="'ftp_cp_pay_type_cd'"
                  style="width:180px"
                  noNull="true"
                ></ftp-dict>-->
                <!--字典组件-->
                <p style="color:red">当有无到期日标识为有到期日时必输</p>
              </el-form-item>
              <!--表单行,32-->
            </el-col>
            <!--col,34-->
            <!--col,35-->
            <el-col :span="12">
              <!--表单行,33-->
              <el-form-item label="首次还款日:" prop="firstPrinPmtDt">
                <!--日期,4-->
                <el-date-picker
                  type="date"
                  v-model="payInfoForm.firstPrinPmtDt"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                ></el-date-picker>
                <!--日期,4-->
              </el-form-item>
              <!--表单行,33-->
            </el-col>
            <!--col,35-->
            <!--col,36-->
            <el-col :span="12">
              <!--表单行,34-->
              <el-form-item label="上次支付日:" prop="lastPrinPmtDt">
                <!--日期,5-->
                <el-date-picker
                  type="date"
                  v-model="payInfoForm.lastPrinPmtDt"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                ></el-date-picker>
                <!--日期,5-->
              </el-form-item>
              <!--表单行,34-->
            </el-col>
            <!--col,36-->
            <!--col,37-->
            <el-col :span="12">
              <!--表单行,35-->
              <el-form-item label="支付频率:" prop="prinPmtFreq">
                <!--输入框,82-->
                <el-input
                  event-render="loadText"
                  v-model="payInfoForm.prinPmtFreq"
                  style="width:80px;display:inline-block"
                  maxlength="9"
                  placeholder="请输入..."
                  type="text"
                  :disabled="baseInfoForm.matuFlg != '1'"
                ></el-input>
                <!--输入框,82-->
                <!--字典组件-->
                <el-select
                  v-model="payInfoForm.prinPmtFreqMult"
                  :disabled="baseInfoForm.matuFlg != '1'"
                  placeholder="请选择"
                  style="width:100px;display:inline-block"
                >
                  <el-option
                    v-for="item in sys_unit"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="payInfoForm.prinPmtFreqMult"
                  :disabled="baseInfoForm.matuFlg != '1'"
                  :dictCode="'sys_unit'"
                  style="width:100px;display:inline-block"
                  noNull="true"
                ></ftp-dict>-->
                <!--字典组件-->
                <p style="color:red">当非到期一次性还本付息必输</p>
              </el-form-item>
              <!--表单行,35-->
            </el-col>
            <!--col,37-->
            <!--col,38-->
            <el-col :span="12">
              <!--表单行,36-->
              <el-form-item label="下次支付日:" prop="nextPrinPmtDt">
                <!--日期,6-->
                <el-date-picker
                  type="date"
                  v-model="payInfoForm.nextPrinPmtDt"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                  :disabled="baseInfoForm.matuFlg != '1'"
                ></el-date-picker>
                <!--日期,6-->
                <p style="color:red">当非到期一次性还本付息必输</p>
              </el-form-item>
              <!--表单行,36-->
            </el-col>
            <!--col,38-->
            <!--col,39-->
            <el-col :span="12">
              <!--表单行,37-->
              <el-form-item label="提前还款金额:" prop="earlyPmtAmt">
                <!--输入框,37-->
                <el-input
                  event-render="loadText"
                  v-model="payInfoForm.earlyPmtAmt"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,37-->
              </el-form-item>
              <!--表单行,37-->
            </el-col>
            <!--col,39-->
            <!--col,40-->
            <el-col :span="12">
              <!--表单行,38-->
              <el-form-item label="下次支付金额:" prop="nextPmtAmt">
                <!--输入框,38-->
                <el-input
                  event-render="loadText"
                  v-model="payInfoForm.nextPmtAmt"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,38-->
              </el-form-item>
              <!--表单行,38-->
            </el-col>
            <!--col,40-->
          </el-row>
          <!--布局,6-->
        </el-form>
        <!--表单,4-->
      </el-tab-pane>
      <!--tabPane,4-->
      <!--tabPane,5-->
      <el-tab-pane label="重定价信息" name="rePricingInfo">
        <!--表单,5-->
        <el-form
          ref="rePricingInfoFormRef"
          :disabled="formDistable"
          :model="rePricingInfoForm"
          tokenKey="rePricingInfoForm"
          label-position="right"
          label-width="160px"
          :rules="!formDistable ? rePricingInfoRules : {}"
        >
          <!--布局,7-->
          <el-row ref="rePricingInfoRowRef">
            <!--col,27-->
            <el-col :span="12">
              <!--表单行,25-->
              <el-form-item label="上次重定价余额:" prop="lastRpricBal">
                <!--输入框,26-->
                <el-input
                  event-render="loadText"
                  v-model="rePricingInfoForm.lastRpricBal"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,26-->
              </el-form-item>
              <!--表单行,25-->
            </el-col>
            <!--col,27-->
            <!--col,41-->
            <el-col :span="12">
              <!--表单行,39-->
              <el-form-item label="最新执行利率变更日期:" prop="lastExecRateChangeDt">
                <!--日期,7-->
                <el-date-picker
                  type="date"
                  v-model="rePricingInfoForm.lastExecRateChangeDt"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                ></el-date-picker>
                <!--日期,7-->
              </el-form-item>
              <!--表单行,39-->
            </el-col>
            <!--col,41-->
            <!--col,42-->
            <el-col :span="12">
              <!--表单行,40-->
              <el-form-item label="利率类型代码:" prop="rateTp">
                <!--字典组件-->
                <el-select
                  v-model="rePricingInfoForm.rateTp"
                  :disabled="baseInfoForm.matuFlg != '1'"
                  placeholder="请选择"
                  style="width:180px"
                >
                  <el-option
                    v-for="item in ftp_cp_rate_type_cd"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="rePricingInfoForm.rateTp"
                  :disabled="baseInfoForm.matuFlg != '1'"
                  :dictCode="'ftp_cp_rate_type_cd'"
                  style="width:180px;"
                  noNull="true"
                  @selectChange="rateTpChange"
                ></ftp-dict>-->
                <!--字典组件-->
                <p style="color:red">当有无到期日标识为有到到期日时必输</p>
              </el-form-item>
              <!--表单行,40-->
            </el-col>
            <!--col,42-->
            <!--col,43-->
            <el-col :span="12">
              <!--表单行,41-->
              <el-form-item label="重定价类型代码:" prop="rpricDtAdjstTp">
                <!--字典组件-->
                <el-select
                  v-model="rePricingInfoForm.rpricDtAdjstTp"
                  :disabled="baseInfoForm.matuFlg != '1' ||
                        rePricingInfoForm.rateTp != 'A'"
                  placeholder="请选择"
                  style="width:180px"
                >
                  <el-option
                    v-for="item in ftp_cp_reprice_type_cd"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="rePricingInfoForm.rpricDtAdjstTp"
                  :disabled="
                      baseInfoForm.matuFlg != '1' ||
                        rePricingInfoForm.rateTp != 'A'
                    "
                  :dictCode="'ftp_cp_reprice_type_cd'"
                  style="width:180px;"
                  noNull="true"
                ></ftp-dict>-->
                <!--字典组件-->
                <p style="color:red">当利率类型代码选择为浮动利率时才可编辑时该项必输</p>
              </el-form-item>
              <!--表单行,41-->
            </el-col>
            <!--col,43-->
            <!--col,44-->
            <el-col :span="12">
              <!--表单行,42-->
              <el-form-item label="上次重定价日期:" prop="lastRpricDt">
                <!--日期,8-->
                <el-date-picker
                  type="date"
                  v-model="rePricingInfoForm.lastRpricDt"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                  :disabled="
                      baseInfoForm.matuFlg != '1' ||
                        rePricingInfoForm.rateTp != 'A'
                    "
                  @change="getNextRpricDt"
                ></el-date-picker>
                <!--日期,8-->
                <p style="color:red">当有无到期日标识为有到期日时该项必输,默认系统时间不可修改</p>
              </el-form-item>
              <!--表单行,42-->
            </el-col>
            <!--col,44-->
            <!--col,45-->
            <el-col :span="12">
              <!--表单行,43-->
              <el-form-item label="重定价频率:" prop="rpricFreq">
                <!--输入框,83-->
                <el-input
                  event-render="loadText"
                  v-model="rePricingInfoForm.rpricFreq"
                  style="width:80px;display:inline-block"
                  maxlength="9"
                  placeholder="请输入..."
                  type="text"
                  :disabled="
                      baseInfoForm.matuFlg != '1' ||
                        rePricingInfoForm.rateTp != 'A'
                    "
                  @change="getNextRpricDt"
                ></el-input>
                <!--输入框,83-->
                <!--字典组件-->
                <el-select
                  v-model="rePricingInfoForm.rpricFreqMult"
                  :disabled="baseInfoForm.matuFlg != '1' ||
                        rePricingInfoForm.rateTp != 'A'"
                  placeholder="请选择"
                  style="width:100px;display:inline-block"
                >
                  <el-option
                    v-for="item in sys_unit"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="rePricingInfoForm.rpricFreqMult"
                  :disabled="
                      baseInfoForm.matuFlg != '1' ||
                        rePricingInfoForm.rateTp != 'A'
                    "
                  :dictCode="'sys_unit'"
                  style="width:100px;display:inline-block"
                  noNull="true"
                  @selectChange="getNextRpricDt"
                ></ftp-dict>-->
                <!--字典组件-->
                <p style="color:red">当利率类型代码选择为浮动利率时该项必输</p>
              </el-form-item>
              <!--表单行,43-->
            </el-col>
            <!--col,45-->
            <!--col,46-->
            <el-col :span="12">
              <!--表单行,44-->
              <el-form-item label="下次重定价日期:" prop="nextRpricDt">
                <!--日期,9-->
                <el-date-picker
                  type="date"
                  v-model="rePricingInfoForm.nextRpricDt"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                  :disabled="
                      baseInfoForm.matuFlg != '1' ||
                        rePricingInfoForm.rateTp != 'A'
                    "
                ></el-date-picker>
                <!--日期,9-->
                <p style="color:red">下次重定价日等于上次重定价日加上重定价频率</p>
              </el-form-item>
              <!--表单行,44-->
            </el-col>
            <!--col,46-->
            <!--col,47-->
            <el-col :span="12">
              <!--表单行,45-->
              <el-form-item label="上次重订价执行利率:" prop="lastRpricExecRate">
                <!--输入框,45-->
                <el-input
                  event-render="loadText"
                  v-model="rePricingInfoForm.lastRpricExecRate"
                  style="width:180px"
                  maxlength="6"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,45-->
              </el-form-item>
              <!--表单行,45-->
            </el-col>
            <!--col,47-->
          </el-row>
          <!--布局,7-->
        </el-form>
        <!--表单,5-->
      </el-tab-pane>
      <!--tabPane,5-->
      <!--tabPane,6-->
      <el-tab-pane label="其他信息" name="otherInfo">
        <!--表单,6-->
        <el-form
          ref="otherInfoFormRef"
          :disabled="formDistable"
          :model="otherInfoForm"
          tokenKey="otherInfoForm"
          label-position="right"
          label-width="140px"
          :rules="!formDistable ? otherInfoRules : {}"
        >
          <!--布局,8-->
          <el-row ref="totherInfoRowRef">
            <!--col,28-->
            <el-col :span="12">
              <!--表单行,26-->
              <el-form-item label="业务评级代码:" prop="bizRatingCd">
                <!-- //字典组件 -->
                <el-select
                  v-model="otherInfoForm.bizRatingCd"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_cp_business_level_cd"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!--字典组件-->
              </el-form-item>
              <!--表单行,26-->
            </el-col>
            <!--col,28-->
            <!--col,48-->
            <el-col :span="12">
              <!--表单行,46-->
              <el-form-item label="客户类别代码:" prop="custCateCd">
                <!--字典组件-->
                <el-select
                  v-model="otherInfoForm.custCateCd"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_cp_cust_catagory_type_cd"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="otherInfoForm.custCateCd"
                  :dictCode="'ftp_cp_cust_catagory_type_cd'"
                  style="width:180px;"
                  noNull="true"
                ></ftp-dict>-->
                <!--字典组件-->
              </el-form-item>
              <!--表单行,46-->
            </el-col>
            <!--col,48-->
            <!--col,49-->
            <el-col :span="12">
              <!--表单行,47-->
              <el-form-item label="渠道:" prop="chnlNm">
                <!--字典组件-->
                <el-select v-model="otherInfoForm.chnlNm" placeholder="请选择" style="width:180px;">
                  <el-option
                    v-for="item in ftp_cp_channel"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="otherInfoForm.chnlNm"
                  :dictCode="'ftp_cp_channel'"
                  style="width:180px;"
                  noNull="true"
                ></ftp-dict>-->
                <!--字典组件-->
              </el-form-item>
              <!--表单行,47-->
            </el-col>
            <!--col,49-->
            <!--col,50-->
            <el-col :span="12">
              <!--表单行,48-->
              <el-form-item label="业务编号:" prop="bizNo">
                <!--输入框,48-->
                <el-input
                  event-render="loadText"
                  v-model="otherInfoForm.bizNo"
                  style="width:180px"
                  maxlength="9"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,48-->
              </el-form-item>
              <!--表单行,48-->
            </el-col>
            <!--col,50-->
            <!--col,51-->
            <el-col :span="12">
              <!--表单行,49-->
              <el-form-item label="逾期标识:" prop="isOdue">
                <!--字典组件-->
                <el-select v-model="otherInfoForm.isOdue" placeholder="请选择" style="width:180px;">
                  <el-option
                    v-for="item in ftp_cp_overdue_flag"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!-- <ftp-dict
                  v-model="otherInfoForm.odue"
                  :dictCode="'ftp_cp_overdue_flag'"
                  style="width:180px;"
                  noNull="true"
                ></ftp-dict>-->
                <!--字典组件-->
              </el-form-item>
              <!--表单行,49-->
            </el-col>
            <!--col,51-->
            <!--col,52-->
            <el-col :span="12">
              <!--表单行,50-->
              <el-form-item label="发行人代码:" prop="issuerCd">
                <!--字典组件-->
                <el-select v-model="otherInfoForm.issuerCd" placeholder="请选择" style="width:180px;">
                  <el-option
                    v-for="item in ftp_cp_publisher_cd"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!--字典组件-->
              </el-form-item>
              <!--表单行,50-->
            </el-col>
            <!--col,52-->
            <!--col,53-->
            <el-col :span="12">
              <!--表单行,51-->
              <el-form-item label="金融工具类型代码:" prop="instrumentTpCd">
                <!--字典组件-->
                <el-select
                  v-model="otherInfoForm.instrumentTpCd"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_cp_instrument_type_cd"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!--字典组件-->
              </el-form-item>
              <!--表单行,51-->
            </el-col>
            <!--col,53-->
            <!--col,54-->
            <el-col :span="12">
              <!--表单行,52-->
              <el-form-item label="成本中心分类代码:" prop="costCtrTpCd">
                <!--字典组件-->
                <el-select
                  v-model="otherInfoForm.costCtrTpCd"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_cp_cst_ctr_type_cd"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
              
                <!--字典组件-->
              </el-form-item>
              <!--表单行,52-->
            </el-col>
            <!--col,54-->
            <!--col,55-->
            <el-col :span="12">
              <!--表单行,53-->
              <el-form-item label="资产负债逾期标志:" prop="isSbjtOdue">
                <!--字典组件-->
                <el-select
                  v-model="otherInfoForm.isSbjtOdue"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_subject_overdue_flag"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
              
              </el-form-item>
              <!--表单行,53-->
            </el-col>
            <!--col,55-->
            <!--col,56-->
            <el-col :span="12">
              <!--表单行,54-->
              <el-form-item label="离岸标志:" prop="offshoreFlg">
                <!--字典组件-->
                <el-select
                  v-model="otherInfoForm.offshoreFlg"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_cp_offshore_flag_cd"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
              
                <!--字典组件-->
              </el-form-item>
              <!--表单行,54-->
            </el-col>
            <!--col,56-->
            <!--col,57-->
            <el-col :span="12">
              <!--表单行,55-->
              <el-form-item label="规模标志:" prop="sizeFlg">
                <!--字典组件-->
                <el-select v-model="otherInfoForm.sizeFlg" placeholder="请选择" style="width:180px;">
                  <el-option
                    v-for="item in ftp_cp_scale_flag"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
               
                <!--字典组件-->
              </el-form-item>
              <!--表单行,55-->
            </el-col>
            <!--col,57-->
            <!--col,58-->
            <el-col :span="12">
              <!--表单行,56-->
              <el-form-item label="协定标志:" prop="isAgmt">
                <!--字典组件-->
                <el-select v-model="otherInfoForm.isAgmt" placeholder="请选择" style="width:180px;">
                  <el-option
                    v-for="item in ftp_cp_agree_flag"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
               
                <!--字典组件-->
              </el-form-item>
              <!--表单行,56-->
            </el-col>
            <!--col,58-->
            <!--col,59-->
            <el-col :span="12">
              <!--表单行,57-->
              <el-form-item label="增量标志:" prop="incrementFlg">
                <!--字典组件-->
                <el-select
                  v-model="otherInfoForm.incrementFlg"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_cp_increment_flag"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
               
                <!--字典组件-->
              </el-form-item>
              <!--表单行,57-->
            </el-col>
            <!--col,59-->
            <!--col,60-->
            <el-col :span="12">
              <!--表单行,58-->
              <el-form-item label="数据有效性标志:" prop="isVlid">
                <!--字典组件-->
                <el-select v-model="otherInfoForm.isVlid" placeholder="请选择" style="width:180px;">
                  <el-option
                    v-for="item in ftp_cp_data_valid_flag"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
              
                <!--字典组件-->
              </el-form-item>
              <!--表单行,58-->
            </el-col>
            <!--col,60-->
            <!--col,61-->
            <el-col :span="12">
              <!--表单行,59-->
              <el-form-item label="外部利息收支:" prop="outIntstIncExp">
                <!--输入框,59-->
                <el-input
                  event-render="loadText"
                  v-model="otherInfoForm.outIntstIncExp"
                  style="width:180px"
                  maxlength="25"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,59-->
              </el-form-item>
              <!--表单行,59-->
            </el-col>
            <!--col,61-->
            <!--col,62-->
            <el-col :span="12">
              <!--表单行,60-->
              <el-form-item label="提前终止标志:" prop="lnPrePmtFlg">
                <!--字典组件-->
                <el-select
                  v-model="otherInfoForm.lnPrePmtFlg"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_rule_break"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
              
                <!--字典组件-->
              </el-form-item>
              <!--表单行,60-->
            </el-col>
            <!--col,62-->
            <!--col,63-->
            <el-col :span="12">
              <!--表单行,61-->
              <el-form-item label="业务要素变更标志:" prop="elementChangeFlg">
                <!--字典组件-->
                <el-select
                  v-model="otherInfoForm.elementChangeFlg"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_businessEle_editFlag"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
               
                <!--字典组件-->
              </el-form-item>
              <!--表单行,61-->
            </el-col>

              <!--col,63-->
            <el-col :span="12">
              <!--表单行,62-->
              <el-form-item label="还款计划标志:" prop="pmtPlanFlg">
                <!--字典组件-->
                <el-select
                  v-model="otherInfoForm.pmtPlanFlg"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_cp_plan_flag"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!--字典组件-->
              </el-form-item>
              <!--表单行,62-->
            </el-col>
            <!--col,61-->
            <el-col :span="12">
              <!--表单行,59-->
              <el-form-item label="还款次数:" prop="outIntstIncExp">
                <!--输入框,59-->
                <el-input
                  event-render="loadText"
                  v-model="otherInfoForm.outIntstIncExp"
                  style="width:180px"
                  maxlength="25"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,59-->
              </el-form-item>
              <!--表单行,59-->
            </el-col>
            <!--col,61-->
             <!--col,63-->
            <el-col :span="12">
              <!--表单行,59-->
              <el-form-item label="追溯类型:" prop="outIntstIncExp">
                <!--输入框,59-->
                <!--字典组件-->
                <el-select
                  v-model="otherInfoForm.pmtPlanFlg"
                  placeholder="请选择"
                  style="width:180px;"
                >
                  <el-option
                    v-for="item in ftp_review_type"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
                <!--输入框,59-->
              </el-form-item>
              <!--表单行,59-->
            </el-col>
            <!--col,63-->
          </el-row>
          <!--布局,8-->
        </el-form>
        <!--表单,6-->
      </el-tab-pane>
      <!--tabPane,6-->
      <!--tabPane,7-->
      <el-tab-pane label="备用字段" name="standby">
        <!--表单,7-->
        <el-form
          ref="standbyFormRef"
          :disabled="formDistable"
          :model="standbyForm"
          tokenKey="standbyForm"
          label-position="right"
          label-width="140px"
          :rules="!formDistable ? standbyRules : {}"
        >
          <!--布局,9-->
          <el-row ref="standbyRowRef">
            <!--col,29-->
            <el-col :span="12">
              <!--表单行,27-->
              <el-form-item label="备用字段1:" prop="append1">
                <!--输入框,28-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append1"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,28-->
              </el-form-item>
              <!--表单行,27-->
            </el-col>
            <!--col,29-->
            <!--col,64-->
            <el-col :span="12">
              <!--表单行,62-->
              <el-form-item label="备用字段2:" prop="append2">
                <!--输入框,62-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append2"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,62-->
              </el-form-item>
              <!--表单行,62-->
            </el-col>
            <!--col,64-->
            <!--col,65-->
            <el-col :span="12">
              <!--表单行,63-->
              <el-form-item label="备用字段3:" prop="append3">
                <!--输入框,63-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append3"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,63-->
              </el-form-item>
              <!--表单行,63-->
            </el-col>
            <!--col,65-->
            <!--col,48-->
            <el-col :span="12">
              <!--表单行,46-->
              <el-form-item label="备用字段4:" prop="append4">
                <!--输入框,46-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append4"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,46-->
              </el-form-item>
              <!--表单行,46-->
            </el-col>
            <!--col,48-->
            <!--col,66-->
            <el-col :span="12">
              <!--表单行,64-->
              <el-form-item label="备用字段5:" prop="append5">
                <!--输入框,64-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append5"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,64-->
              </el-form-item>
              <!--表单行,64-->
            </el-col>
            <!--col,66-->
            <!--col,67-->
            <el-col :span="12">
              <!--表单行,65-->
              <el-form-item label="备用字段6:" prop="append6">
                <!--输入框,65-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append6"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,65-->
              </el-form-item>
              <!--表单行,65-->
            </el-col>
            <!--col,67-->
            <!--col,68-->
            <el-col :span="12">
              <!--表单行,66-->
              <el-form-item label="备用字段7:" prop="append7">
                <!--输入框,66-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append7"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,66-->
              </el-form-item>
              <!--表单行,66-->
            </el-col>
            <!--col,68-->
            <!--col,69-->
            <el-col :span="12">
              <!--表单行,67-->
              <el-form-item label="备用字段8:" prop="append8">
                <!--输入框,67-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append8"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,67-->
              </el-form-item>
              <!--表单行,67-->
            </el-col>
            <!--col,69-->
            <!--col,70-->
            <el-col :span="12">
              <!--表单行,68-->
              <el-form-item label="备用字段9:" prop="append9">
                <!--输入框,68-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append9"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,68-->
              </el-form-item>
              <!--表单行,68-->
            </el-col>
            <!--col,70-->
            <!--col,71-->
            <el-col :span="12">
              <!--表单行,69-->
              <el-form-item label="备用字段10:" prop="append10">
                <!--输入框,69-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append10"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,69-->
              </el-form-item>
              <!--表单行,69-->
            </el-col>
            <!--col,71-->
            <!--col,72-->
            <el-col :span="12">
              <!--表单行,70-->
              <el-form-item label="备用字段11:" prop="append11">
                <!--输入框,70-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append11"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,70-->
              </el-form-item>
              <!--表单行,70-->
            </el-col>
            <!--col,72-->
            <!--col,73-->
            <el-col :span="12">
              <!--表单行,71-->
              <el-form-item label="备用字段12:" prop="append12">
                <!--输入框,71-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append12"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,71-->
              </el-form-item>
              <!--表单行,71-->
            </el-col>
            <!--col,73-->
            <!--col,74-->
            <el-col :span="12">
              <!--表单行,72-->
              <el-form-item label="备用字段13:" prop="append13">
                <!--输入框,72-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append13"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,72-->
              </el-form-item>
              <!--表单行,72-->
            </el-col>
            <!--col,74-->
            <!--col,75-->
            <el-col :span="12">
              <!--表单行,73-->
              <el-form-item label="备用字段14:" prop="append14">
                <!--输入框,73-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append14"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,73-->
              </el-form-item>
              <!--表单行,73-->
            </el-col>
            <!--col,75-->
            <!--col,76-->
            <el-col :span="12">
              <!--表单行,74-->
              <el-form-item label="备用字段15:" prop="append15">
                <!--输入框,74-->
                <el-input
                  event-render="loadText"
                  v-model="standbyForm.append15"
                  style="width:180px"
                  maxlength="40"
                  placeholder="请输入..."
                  type="text"
                  :disabled="false"
                ></el-input>
                <!--输入框,74-->
              </el-form-item>
              <!--表单行,74-->
            </el-col>
            <!--col,76-->
            <!--col,77-->
            <el-col :span="12">
              <!--表单行,75-->
              <el-form-item label="备用字段16:" prop="append16">
                <!--日期,10-->
                <el-date-picker
                  type="date"
                  v-model="standbyForm.append16"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                ></el-date-picker>
                <!--日期,10-->
              </el-form-item>
              <!--表单行,75-->
            </el-col>
            <!--col,77-->
            <!--col,78-->
            <el-col :span="12">
              <!--表单行,76-->
              <el-form-item label="备用字段17:" prop="append17">
                <!--日期,11-->
                <el-date-picker
                  type="date"
                  v-model="standbyForm.append17"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                ></el-date-picker>
                <!--日期,11-->
              </el-form-item>
              <!--表单行,76-->
            </el-col>
            <!--col,78-->
            <!--col,79-->
            <el-col :span="12">
              <!--表单行,77-->
              <el-form-item label="备用字段18:" prop="append18">
                <!--日期,12-->
                <el-date-picker
                  type="date"
                  v-model="standbyForm.append18"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                ></el-date-picker>
                <!--日期,12-->
              </el-form-item>
              <!--表单行,77-->
            </el-col>
            <!--col,79-->
            <!--col,80-->
            <el-col :span="12">
              <!--表单行,78-->
              <el-form-item label="备用字段19:" prop="append19">
                <!--日期,13-->
                <el-date-picker
                  type="date"
                  v-model="standbyForm.append19"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                ></el-date-picker>
                <!--日期,13-->
              </el-form-item>
              <!--表单行,78-->
            </el-col>
            <!--col,80-->
            <!--col,81-->
            <el-col :span="12">
              <!--表单行,79-->
              <el-form-item label="备用字段20:" prop="append20">
                <!--日期,14-->
                <el-date-picker
                  type="date"
                  v-model="standbyForm.append20"
                  value-format="yyyy-MM-dd"
                  style="width:180px"
                  placeholder="选择日期"
                ></el-date-picker>
                <!--日期,14-->
              </el-form-item>
              <!--表单行,79-->
            </el-col>
            <!--col,81-->
          </el-row>
          <!--布局,9-->
        </el-form>
        <!--表单,7-->
      </el-tab-pane>
      <!--tabPane,7-->
    </el-tabs>
  </div>
</template>

<script>
import ftpTree from "@/components/ftp/ftpRelationTree";
import { getDict } from "@/api/getDict";
import moment from "moment";
import { publicManage_pub, positionAmend } from "@/api/index";
import trialConfigerVue from "../../pricingTrial/trialConfiger/trialConfiger.vue";
export default {
  props: {
    amendFormData: {
      type: Object,
      default: () => ({})
    }
  },
  components: {
    ftpTree
  },
  data() {
    return {
      activeTabName:"baseInfo",
      formDistable: false, // 是否禁用所有表单,
      operateType: "0",
      isEdit: false,
      isftpTree: false,
      //币种
      currencyOption: [],
      //基础信息规则
      baseInfoRules: {
        acctNo: [{ required: true, message: "请输入账号", trigger: "blur" },
            { pattern: /^[a-zA-Z0-9_]{1,50}$/, message: "只可输入(1-50)位的英文字母、数字和下划线！" }
        ],
        dataDt: [
          { required: true, message: "请选择数据日期", trigger: "blur" }
        ],
        orgCd: [{ required: true, message: "请选择机构", trigger: "blur" }],
        industryCd: [{ required: true, message: "选择行业", trigger: "blur" }],
        prdCd: [{ required: true, message: "请选择产品", trigger: "blur" }],
        sbjtCd: [{ required: true, message: "请选择科目", trigger: "blur" }],
        ccyCd: [{ required: true, message: "请选择币种", trigger: "blur" }],
        sbjtTp: [
          { required: true, message: "请选择业务类型", trigger: "blur" }
        ],
        curBal: [
          { required: true, message: "请输入当前余额", trigger: "blur" },
          { pattern: /^\d+(\.\d+)?$/, message: "格式不正确,请检查" }
        ],
        origAmt: [{ pattern: /^\d+(\.\d+)?$/, message: "格式不正确,请检查" }],
        matuFlg: [
          { required: true, message: "请选择有无到期日标志", trigger: "blur" }
        ]
      },
      rateInfoRules: {
        execRate: [
          {
            pattern: /^\d{1,8}(\.\d{1,8})?$/,
            message: "输入整数8位内,小数8位",
            trigger: "blur"
          }
        ],
        fltRatio: [
          {
            pattern: /^\d{1,8}(\.\d{1,8})?$/,
            message: "输入整数8位内,小数8位",
            trigger: "blur"
          }
        ],
        fltMargin: [
          {
            pattern: /^\d{1,8}(\.\d{1,8})?$/,
            message: "输入整数8位内,小数8位",
            trigger: "blur"
          }
        ],
        billRate: [
          {
            pattern: /^\d{1,8}(\.\d{1,8})?$/,
            message: "输入整数8位内,小数8位",
            trigger: "blur"
          }
        ]
      },
      termInfoRules: {
        term: [
          { pattern: /^\d{1,9}?$/, message: "输入整数9位内", trigger: "blur" }
        ],
        odueTerm: [
          { pattern: /^\d{1,9}?$/, message: "输入整数9位内", trigger: "blur" }
        ]
      },
      payInfoRules: {
        pmtBal: [
          {
            pattern: /^\d{1,16}(\.\d{1,8})?$/,
            message: "输入整数16位内,小数8位内",
            trigger: "blur"
          }
        ],
        intstPmtFreq: [
          { pattern: /^\d{1,9}?$/, message: "输入整数9位内", trigger: "blur" }
        ],
        prinPmtFreq: [
          { pattern: /^\d{1,9}?$/, message: "输入整数9位内", trigger: "blur" }
        ],
        earlyPmtAmt: [
          {
            pattern: /^\d{1,16}(\.\d{1,8})?$/,
            message: "输入整数16位内,小数8位内",
            trigger: "blur"
          }
        ],
        nextPmtAmt: [
          {
            pattern: /^\d{1,16}(\.\d{1,8})?$/,
            message: "输入整数16位内,小数8位内",
            trigger: "blur"
          }
        ]
      },
      rePricingInfoRules: {
        lastRpricBal: [
          {
            pattern: /^\d{1,16}(\.\d{1,8})?$/,
            message: "输入整数16位内,小数8位内",
            trigger: "blur"
          }
        ],
        rpricFreq: [
          { pattern: /^\d{1,9}?$/, message: "输入整数9位内", trigger: "blur" }
        ],
        lastRpricExecRate: [
          {
            pattern: /^\d{1,8}(\.\d{1,8})?$/,
            message: "输入整数8位内,小数8位内",
            trigger: "blur"
          }
        ]
      },
      otherInfoRules: {
        bizNo: [
          { pattern: /^\d{1,9}?$/, message: "输入整数9位内", trigger: "blur" }
        ],
        outIntstIncExp: [
          {
            pattern: /^\d{1,16}(\.\d{1,8})?$/,
            message: "输入整数16位内,小数8位内",
            trigger: "blur"
          }
        ]
      },
      standbyRules: {
        append11: [
          {
            pattern: /^\d{1,18}(\.\d{1,6})?$/,
            message: "输入整数18位内,小数6位内",
            trigger: "blur"
          }
        ],
        append12: [
          {
            pattern: /^\d{1,18}(\.\d{1,6})?$/,
            message: "输入整数18位内,小数6位内",
            trigger: "blur"
          }
        ],
        append13: [
          {
            pattern: /^\d{1,18}(\.\d{1,6})?$/,
            message: "输入整数18位内,小数6位内",
            trigger: "blur"
          }
        ],
        append14: [
          {
            pattern: /^\d{1,18}(\.\d{1,6})?$/,
            message: "输入整数18位内,小数6位内",
            trigger: "blur"
          }
        ],
        append15: [
          {
            pattern: /^\d{1,18}(\.\d{1,6})?$/,
            message: "输入整数18位内,小数6位内",
            trigger: "blur"
          }
        ]
      },

      baseInfoForm: {
        orgCd: "",
        ccyCd: "",
        dataDt: "",
        acctNo: "",
        sbjtTp: "",
        industryCd: "",
        custNo: "",
        prdCd: "",
        sbjtCd: "",
        acruIntstBas: "",
        origAmt: "",
        curBal: "",
        matuFlg: "",
        rateSensitiveFlg: "",
        bizLineCd: "",
        area: ""
      },
      rateInfoForm: {
        execRate: "",
        execRateCd: "",
        fltTpCd: "",
        fltRatio: "",
        fltMargin: "",
        billRate: ""
      },
      termInfoForm: {
        startDt: "",
        term: "",
        termMult: "",
        matuDt: "",
        odueTerm: ""
      },
      payInfoForm: {
        pmtBal: "",
        intstPmtFreq: "",
        intstPmtFreqMult: "",
        pmtTp: "",
        firstPrinPmtDt: "",
        lastPrinPmtDt: "",
        prinPmtFreq: "",
        prinPmtFreqMult: "",
        nextPrinPmtDt: "",
        earlyPmtAmt: "",
        nextPmtAmt: ""
      },
      rePricingInfoForm: {
        lastRpricBal: "",
        lastExecRateChangeDt: "",
        rateTp: "",
        rpricDtAdjstTp: "",
        lastRpricDt: "",
        rpricFreq: "",
        rpricFreqMult: "",
        nextRpricDt: "",
        lastRpricExecRate: ""
      },
      otherInfoForm: {
        bizRatingCd: "",
        custCateCd: "",
        chnlNm: "",
        bizNo: "",
        isOdue: "",
        issuerCd: "",
        instrumentTpCd: "",
        costCtrTpCd: "",
        isSbjtOdue: "",
        offshoreFlg: "",
        sizeFlg: "",
        isAgmt: "",
        incrementFlg: "",
        isVlid: "",
        outIntstIncExp: "",
        lnPrePmtFlg: "",
        elementChangeFlg: ""
      },
      standbyForm: {
        append1: "",
        append2: "",
        append3: "",
        append4: "",
        append5: "",
        append6: "",
        append7: "",
        append8: "",
        append9: "",
        append10: "",
        append11: "",
        append12: "",
        append13: "",
        append14: "",
        append15: "",
        append16: "",
        append17: "",
        append18: "",
        append19: "",
        append20: ""
      },
      //字典字段
      cpm_subject_type: [],
      //计息基础代码
      ftp_cp_accru_basis_cd: [],
      //有无到期日标志
      ftp_cp_mat_flag_cd: [],
      //利率敏感标志
      ftp_cp_ratesensitive_flag: [],
      //条线
      ftp_cp_stripline: [],
      //区域
      ftp_cp_area: [],
      //浮动类型代码
      ftp_cp_int_float_type_cd: [],
      //期限单位
      sys_unit: [],
      //支付类型代码
      ftp_cp_pay_type_cd: [],
      //利率类型代码
      ftp_cp_rate_type_cd: [],
      //重定价类型代码
      ftp_cp_reprice_type_cd: [],
      //业务评级代码
      ftp_cp_business_level_cd: [],
      //客户类别代码
      ftp_cp_cust_catagory_type_cd: [],
      //渠道
      ftp_cp_channel: [],
      //逾期标识
      ftp_cp_overdue_flag: [],
      //发行人代码
      ftp_cp_publisher_cd: [],
      //金融工具类型代码
      ftp_cp_instrument_type_cd: [],
      //成本中心分类代码
      ftp_cp_cst_ctr_type_cd: [],
      //资产负债逾期标志
      ftp_subject_overdue_flag: [],
      //离岸标志
      ftp_cp_offshore_flag_cd: [],
      //规模标志
      ftp_cp_scale_flag: [],
      //协定标志
      ftp_cp_agree_flag: [],
      //增量标志
      ftp_cp_increment_flag: [],
      //数据有效性标志
      ftp_cp_data_valid_flag: [],
      //提前终止标志
      ftp_rule_break: [],
      //业务要素变更标志
      ftp_businessEle_editFlag: [],
      //还款计划标识
      ftp_cp_plan_flag:[],
      //追溯类型
      ftp_review_type:[],
      allSaveField: {
        baseInfoField: [
          "ccyCd",
          "orgCd",
          "acctNo",
          "dataDt",
          "industryCd",
          "custNo",
          "prdCd",
          "sbjtCd",
          "sbjtTp",
          "acruIntstBas",
          "origAmt",
          "curBal",
          "matuFlg",
          "rateSensitiveFlg",
          "bizLineCd",
          "area"
        ],
        rateInfoField: [
          "execRate",
          "execRateCd",
          "fltTpCd",
          "fltRatio",
          "fltMargin",
          "billRate"
        ],
        termInfoField: ["startDt", "term", "termMult", "matuDt", "odueTerm"],
        payInfoField: [
          "pmtBal",
          "intstPmtFreq",
          "intstPmtFreqMult",
          "pmtTp",
          "firstPrinPmtDt",
          "lastPrinPmtDt",
          "prinPmtFreq",
          "prinPmtFreqMult",
          "nextPrinPmtDt",
          "earlyPmtAmt",
          "nextPmtAmt"
        ],
        rePricingInfoField: [
          "lastRpricBal",
          "lastExecRateChangeDt",
          "rateTp",
          "rpricDtAdjstTp",
          "lastRpricDt",
          "rpricFreq",
          "rpricFreqMult",
          "nextRpricDt",
          "lastRpricExecRate"
        ],
        otherInfoField: [
          "bizRatingCd",
          "custCateCd",
          "chnlNm",
          "bizNo",
          "isOdue",
          "issuerCd",
          "instrumentTpCd",
          "costCtrTpCd",
          "isSbjtOdue",
          "offshoreFlg",
          "sizeFlg",
          "isAgmt",
          "incrementFlg",
          "isVlid",
          "outIntstIncExp",
          "lnPrePmtFlg",
          "elementChangeFlg"
        ],
        standbyField: [
          "append1",
          "append2",
          "append3",
          "append4",
          "append5",
          "append6",
          "append7",
          "append8",
          "append9",
          "append10",
          "append11",
          "append12",
          "append13",
          "append14",
          "append15",
          "append16",
          "append17",
          "append18",
          "append19",
          "append20"
        ]
      }
    };
  },

  created() {
    //获取所有的字典项
    //跳转form表单
    console.log("111111111111", this.amendFormData);
    this.getAllDict();
    this.queryDimCurrency();
  },
  mounted() {},
  computed: {},
  methods: {
    initAmend() {
     this.activeTabName="baseInfo";
      this.operateType = this.amendFormData.operateType;
      let $this = this;
      if (this.operateType === "3") {
        this.formDistable = true;
        this.isftpTree = trialConfigerVue;
      } else if (this.operateType === "2") {
        this.formDistable = false;
        this.isEdit = true;
        this.isftpTree = false;
      } else {
        this.formDistable = false;
        this.isEdit = false;
        this.isftpTree = false;
      }
      let amendData = {
        operateType: this.amendFormData.operateType,
        positionAmend: {
          acctNo: this.amendFormData.acctNo
        }
      };
      console.log("2222", amendData);
      positionAmend.toForm(amendData).then(res => {
        if (res.code == 200) {
          $this.findFormInrow(
            res.data.entity,
            $this.baseInfoForm,
            $this.allSaveField.baseInfoField
          );
          //添加 树的显示数据
          this.baseInfoForm.org = res.data.textValueMap.orgCode;
          this.baseInfoForm.industry = res.data.textValueMap.industryCode;
          this.baseInfoForm.product = res.data.textValueMap.productCode;
          this.baseInfoForm.subject = res.data.textValueMap.subjectCode;

          console.log("333333", this.baseInfoForm);
          $this.findFormInrow(
            res.data.entity,
            $this.rateInfoForm,
            $this.allSaveField.rateInfoField
          );
          $this.findFormInrow(
            res.data.entity,
            $this.termInfoForm,
            $this.allSaveField.termInfoField
          );
          $this.findFormInrow(
            res.data.entity,
            $this.payInfoForm,
            $this.allSaveField.payInfoField
          );
          $this.findFormInrow(
            res.data.entity,
            $this.rePricingInfoForm,
            $this.allSaveField.rePricingInfoField
          );
          $this.findFormInrow(
            res.data.entity,
            $this.otherInfoForm,
            $this.allSaveField.otherInfoField
          );
          $this.findFormInrow(
            res.data.entity,
            $this.standbyForm,
            $this.allSaveField.standbyField
          );
        }
      });

      $this.$forceUpdate();
    },
    findFormInrow(row, form, list) {
      for (let i = 0; i < list.length; i++) {
        form[list[i]] = row[list[i]];
      }
    },
    // 切换tabs前回调
    beforeTabAct(actTabName, oldTabName) {
      let a = true;
      this.$refs[oldTabName + "FormRef"].validate(valid => {
        if (valid) {
          a = true;
        } else {
          a = false;
        }
      });
      return a;
    },
    //查询币种
    queryDimCurrency() {
      publicManage_pub.currencyManageQuery().then(res => {
        if (res.code == 200) {
          this.currencyOption = res.data;
        } else {
          this.$message.error(res.message);
        }
      });
    },
    //获取所有的字典项
    getAllDict() {
      this.getItemDict("cpm_subject_type");
      this.getItemDict("ftp_cp_accru_basis_cd");
      this.getItemDict("ftp_cp_mat_flag_cd");
      this.getItemDict("ftp_cp_ratesensitive_flag");
      this.getItemDict("ftp_cp_stripline");
      this.getItemDict("ftp_cp_area");
      this.getItemDict("ftp_cp_int_float_type_cd");
      this.getItemDict("sys_unit");
      this.getItemDict("ftp_cp_pay_type_cd");
      this.getItemDict("ftp_cp_rate_type_cd");
      this.getItemDict("ftp_cp_reprice_type_cd");
      this.getItemDict("ftp_cp_business_level_cd");
      this.getItemDict("ftp_cp_cust_catagory_type_cd");
      this.getItemDict("ftp_cp_channel");
      this.getItemDict("ftp_cp_overdue_flag");
      this.getItemDict("ftp_cp_publisher_cd");
      this.getItemDict("ftp_cp_instrument_type_cd");
      this.getItemDict("ftp_cp_cst_ctr_type_cd");
      this.getItemDict("ftp_subject_overdue_flag");
      this.getItemDict("ftp_cp_offshore_flag_cd");
      this.getItemDict("ftp_cp_scale_flag");
      this.getItemDict("ftp_cp_agree_flag");
      this.getItemDict("ftp_cp_increment_flag");
      this.getItemDict("ftp_cp_data_valid_flag");
      this.getItemDict("ftp_rule_break");
      this.getItemDict("ftp_businessEle_editFlag");
      this.getItemDict("ftp_cp_plan_flag");
       this.getItemDict("ftp_review_type");
    },
    //获取字典项的详情
    getItemDict(val) {
      getDict(val).then(res => {
        if (res.code == 200) {
          this[val] = res.datas;
        }
      });
    },

    // 产生下次下次重定价日期
    getNextRpricDt() {
      if (
        this.rePricingInfoForm.lastRpricDt &&
        this.rePricingInfoForm.rpricFreq * 1 &&
        this.rePricingInfoForm.rpricFreqMult
      ) {
        let time1 = new Date(this.rePricingInfoForm.lastRpricDt).getTime();
        let time2 = this.getTimeNumber(
          this.rePricingInfoForm.rpricFreq * 1,
          this.rePricingInfoForm.rpricFreqMult
        );
        this.rePricingInfoForm.nextRpricDt = dateFormat(time1 + time2);
      } else {
        this.rePricingInfoForm.nextRpricDt = "";
      }
      this.$forceUpdate();
    },
    //保存数据
    saveAmendData() {
      //首先验证数据是否符合规则
        //校验每一个表单
        if(this.checkForm('baseInfo') &&　this.checkForm('rateInfo') &&　
        this.checkForm('termInfo') &&　this.checkForm('payInfo') &&　
        this.checkForm('rePricingInfo') &&　this.checkForm('otherInfo') &&　
        this.checkForm('standby') ){
             console.log(this.baseInfoForm, ".this.baseInfoForm");
          console.log(this.rateInfoForm, ".this.rateInfoForm");
          let positionAmendData = {
            ...this.baseInfoForm,
            ...this.rateInfoForm,
            ...this.termInfoForm,
            ...this.payInfoForm,
            ...this.rePricingInfoForm,
            ...this.otherInfoForm,
            ...this.standbyForm
          };
          console.log("positionAmendData", positionAmendData);
          let data = {
            operateType: this.operateType,
            positionAmend: positionAmendData
          };
          positionAmend.save(data).then(res => {
            if (res.code == 200) {
              this.$message.success(res.message);
              this.$emit("resultInff");
            } else {
              this.$message.error(res.message);
            }
          });
        }
    },
    checkForm(actTabName){
         let a = true;
      this.$refs[actTabName + "FormRef"].validate(valid => {
        if (valid) {
          return true;
        } else {
          return false;
         this.activeTabName = actTabName;
        }
      });
    //校验到期日数据
     if(this.baseInfoForm.matuFlg =='1'){
         if(actTabName == 'termInfo'){
             if(!this.termInfoForm.startDt){
               this.termInfoForm.startDt=  moment(new Date()).format("YYYY-MM-DD HH:mm:ss") 
             }

             if(!this.termInfoForm.term && !this.termInfoForm.termMult ){
                 this.$message.warning("原始期限值不能为空");
                 this.activeTabName = actTabName;
                 return false;
             }

              if(!this.termInfoForm.matuDt ){
                 this.$message.warning("到期日不能为空");
                 this.activeTabName = actTabName;
                 return false;
             }

               
         }

          if(actTabName == 'payInfo'){
               if(!this.payInfoForm.pmtTp  ){
                 this.$message.warning("有到期日时,支付类型代码不能为空");
                 this.activeTabName = actTabName;
                 return false;
             }else if(this.payInfoForm.pmtTp != 'A'){

                 if(this.payInfoForm.pmtTp != 'G'){
					/*判断支付频率*/
					if(!this.payInfoForm.prinPmtFreq){
						this.$message.warning("支付类型代码为非到期一次性还本付息或者不是根据还款计划时支付频率不能为空！");
						this.activeTabName = actTabName;
                        return false;
					}
				}
				/*判断下次支付日*/
				if(this.payInfoForm.nextPrinPmtDt){
					this.$message.warning("支付类型代码为非到期一次性还本付息下次支付日不能为空！");
					this.activeTabName = actTabName;
                    return false;
				}

             }

          }

             if(actTabName == 'rePricingInfo'){
               if(!this.rePricingInfoForm.rateTp  ){
                 this.$message.warning("有到期日时,利率类型代码不能为空");
                 this.activeTabName = actTabName;
                return false;
             }else if(this.rePricingInfoForm.rateTp == 'A'){

					/*判断支付频率*/
					if(!this.rePricingInfoForm.rpricFreq){
						 this.$message.warning("利率类型为浮动利率时,重定价频率不能为空！");
						this.activeTabName = actTabName;
                        return false;
					}
				/*判断下次支付日*/
				if(!this.rePricingInfoForm.rpricDtAdjstTp){
					this.$message.warning("利率类型为浮动利率时,重定价类型代码不能为空！");
					this.activeTabName = actTabName;
                     return  false;
				}else if(this.rePricingInfoForm.rpricDtAdjstTp == '1'){

                    	/*判断下次支付日*/
				if(!this.rePricingInfoForm.nextRpricDt){
					this.$message.warning("重定价类型代码为固定日期时,下次重定价日不能为空！");
					this.activeTabName = actTabName;
                    return  false;
				}

                }

             }

          }
         
     }   
      return true;   
    }
  }
};
</script>

<style lang="scss" scoped >
.treeBoxBig {
  // width: 320px;
  width: 180px;
  height: 26px;
  border: 1px solid #b4bccc;
  border-radius: 4px;
  .treeBox {
    width: 180px;
    height: 26px;
    padding-left: 10px;
    line-height: 26px;
  }
  .treeBtnCS {
    background: url("~@/assets/images/popWindow_arrow.gif");
    background-repeat: no-repeat;
    height: 26px;
    width: 26px;
    position: absolute;
    left: 154px;
    //right: 25%;
    top: 4px;
    cursor: pointer;
  }
}
</style>